extends Node
var current_experience = 0

func increment_experience(number: float):
	current_experience += number
	print(current_experience)

# 接收到信号
# Called when the node enters the scene tree for the first time.
func _ready():
	GameEvents.experience_vail_collected.connect(on_experience_vial_collected)


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
	pass

func on_experience_vial_collected(number: float):
	increment_experience(number)
	
	
	
	
	
	
